2 reports in one Viewer

Hello,
i'm a newbie in FastReport and sorry for my horrible english.

I have two Reports (frx) and i will now show this two reports in one FR-Viewer as seperated tabulators.
(please see th attachment)

My startcode in the winform is (in VB.Net):
    Private Sub frmCCP3FastInputPrint_Load( ByVal sender As System.Object,  ByVal e As System.EventArgs) Handles MyBase.Load
       '* myCCP3FastInputReport is the name of Reportcontrol
       '* myPreviewControl is the name of Reportviewercontrol
        myCCP3FastInputReport.Load(string.Concat(My.Settings.myReportPath,"\","CCP3FastInputReport.frx"))
        myCCP3FastInputReport.Prepare 
        myCCP3FastInputReport.Preview=myPreviewControl
      
        myCCP3FastInputReport.Show        
    End Sub    

How do I have to change the code to display both reports in a viewer?

Many thanks for help

Frank

Comments

  • edited 7:48AM
    Hello,

    Use the following code to add a new tab to the preview control:

    report.Load(...)
    report.Prepare()
    previewControl1.AddTab(report, "tab title")
  • edited 7:48AM
    AlexTZ wrote: »
    Hello,

    Use the following code to add a new tab to the preview control:

    report.Load(...)
    report.Prepare()
    previewControl1.AddTab(report, "tab title")

    Hello AlexTZ,

    that was what I was looking for.

    Thanks

    Frank >>

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.